let formData = {
    name: 'zhuhaoran',
    age: 12,
    address:'安徽地址'
}
//for in
//1.for in只能获取对象的key值
//2.想要获取值可以使用formData[key]
//3.清空对象中属性的值 formData[key]=""
for (let key in formData) {
    console.log(key)
    console.log(formData[key])
    formData[key]=""
}
console.log(formData) //{ name: '', age: '', address: '' }
